package pers.zc.activiti.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

import java.util.ArrayList;
import java.util.List;

/**
 * 所有人认领,当前节点确认
 * all persion choose,the act task shore
 * gwx
 * 2019年1月8日 16:12:02
 */
public class MyAllPassListener implements TaskListener {

    @Override
    public void notify(DelegateTask delegateTask) {
        List<String> assigneeList = new ArrayList<>();
        //TODO LIST ADD USER ------ How to Choose Personnel
        assigneeList.add("李1");
        assigneeList.add("李2");
        assigneeList.add("李3");
        delegateTask.setVariable("userList",assigneeList);
    }
}
